home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
os2
/
joevw122.arj
/
JVWINSTL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-01-18
|
1KB
|
45 lines
/* JoeView Installation REXX script */
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
currentdirectory = DIRECTORY()
Call SysCls
Call SysCurState 'ON'
Say
Say
Say
Say
Say 'In which directory will JoeView.exe be installed? '
Say
Say currentdirectory
Call SysCurPos 6, 0
Pull string
string = SysTextScreenRead( 6, 0, 80 )
Parse Upper Var string destination string
Call SysFileTree destination, 'directories', 'DO'
If directories.0 = 0 Then Do
Say 'Make directory 'destination '(Y/N)'
answer = SysGetKey()
Say
Parse Upper Var answer answer
if answer = 'Y' then Call SysMkDir( destination )
End /* Do */
IF SUBSTR( destination, LENGTH(destination), 1 ) <> "\"
THEN destination = destination || "\"
title = "JoeView 1.22"
classname = 'WPProgram'
location = '<WP_DESKTOP>'
filter= '*.GIF,*.JPG,*.JPEG,*.BMP,*.TGA,*.PBM,*.PGM,*.PPM,*.TIF,*.TIFF,*.RLE,*.MET,*.PCX,*.X11,*.RAS,*.SLS;'
setup = 'EXENAME='destination'JoeView.exe;STARTUPDIR=',
destination';PROGTYPE=PM;ASSOCFILTER='filter
option = 'update'
Say "Creating JoeView 1.22 Program Object..."
rc = SysCreateObject(classname, title, location, setup, option)
Say ""
Say 'All better now'
Say 'You should take the *.BMP association off of the icon editor, if'
Say 'you have not done so already.'
Exit